<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=adminer&act=list">用户管理</a> &raquo; 登陆日志</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <div class="content_box">
    <div class="content_bor">
      <table class="ltable">
        <tr class="first">
          <td>IP地址</td>
          <td>提交时间</td>
          <td>状态</td>
          <!-- if($state) -->
          <td width="220">操作</td>
          <!-- end -->
        </tr>
        <!-- $admin_log_list AS $key=>$value -->
        <tr>
          <td>{:$value[ip]}</td>
          <td>{run:echo date("Y-m-d H:i:s",$value[logindate])}</td>
          <td><!-- if($value[isstate]==1) --><span style="color:#74c159;">[登入]</span><!-- elseif($value[isstate]==2) --><span style="color:#106ac6;">[登出]</span><!-- else --><span style="color:#e00000;">[失败]</span><!-- end --></td>
          <!-- if($state) -->
          <td><button class="gbutton" type="button" onclick="qg_view({:$value[id]})">解除</button></td>
          <!-- end -->
        </tr>
        <!-- end -->
      </table>
    </div>
  </div><!--content_box-->
  
  {:$pagelist}
  
  <div class="gbutton_div"><!-- if($_SESSION[admin][typer] == "system") --><button type="button" class="gbutton gbutton_dblue gbutton_add" onclick="qg_delete()">清空日志文件</button> <!-- end --><button type="button" class="gbutton gbutton_dblue gbutton_add" onclick="qgurl('{:$mainlink}?file=adminlog&act=list&state=1')">查看禁用IP/解绑IP</button></div>
</div><!--page_pad-->

<script type="text/javascript">
function qg_view(id)
{
	url = "{:$mainlink}?file=adminlog&act=view&id="+id
	tip_confirm("确认解除IP登录限制吗？",url);
}
<!-- if($_SESSION[admin][typer] == "system") -->
function qg_delete()
{
	url = "{:$mainlink}?file=adminlog&act=delete";
	tip_confirm("确认清空日志文件？清后后将无法恢复！",url);
}
<!-- end -->
</script>

<!-- inc:frame.bottom -->